for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
var jsrsasign = require('jsrsasign');
function parseCertFrom(string, encoding) {
var cert = new jsrsasign.X509();
cert.readCertHex(Buffer.from(string, encoding).toString('hex'));
Buffer
/** global: Buffer */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
return cert;
}
function parseCertFromBase64(string) {
return parseCertFrom(string, 'base64');
var certificates = require('./ca-certificates.json');
var store = [];
Object.keys(certificates).map(function(key) {
store.push(parseCertFromBase64(certificates[key]));
});
module.exports = store;
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.